/*
 * XML Type:  Reinvest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.Reinvest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04;


/**
 * An XML Reinvest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public interface Reinvest extends net.ofx.types.x2003.x04.AbstractInvestmentTransaction
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s3A74FF4CC3627C5B0D40068015746F8A.TypeSystemHolder.typeSystem.resolveHandle("reinvestb7fatype");
    
    /**
     * Gets the "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId getSECID();
    
    /**
     * Sets the "SECID" element
     */
    void setSECID(net.ofx.types.x2003.x04.SecurityId secid);
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId addNewSECID();
    
    /**
     * Gets the "INCOMETYPE" element
     */
    net.ofx.types.x2003.x04.IncomeEnum.Enum getINCOMETYPE();
    
    /**
     * Gets (as xml) the "INCOMETYPE" element
     */
    net.ofx.types.x2003.x04.IncomeEnum xgetINCOMETYPE();
    
    /**
     * Sets the "INCOMETYPE" element
     */
    void setINCOMETYPE(net.ofx.types.x2003.x04.IncomeEnum.Enum incometype);
    
    /**
     * Sets (as xml) the "INCOMETYPE" element
     */
    void xsetINCOMETYPE(net.ofx.types.x2003.x04.IncomeEnum incometype);
    
    /**
     * Gets the "TOTAL" element
     */
    java.lang.String getTOTAL();
    
    /**
     * Gets (as xml) the "TOTAL" element
     */
    net.ofx.types.x2003.x04.AmountType xgetTOTAL();
    
    /**
     * Sets the "TOTAL" element
     */
    void setTOTAL(java.lang.String total);
    
    /**
     * Sets (as xml) the "TOTAL" element
     */
    void xsetTOTAL(net.ofx.types.x2003.x04.AmountType total);
    
    /**
     * Gets the "SUBACCTSEC" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum.Enum getSUBACCTSEC();
    
    /**
     * Gets (as xml) the "SUBACCTSEC" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum xgetSUBACCTSEC();
    
    /**
     * Sets the "SUBACCTSEC" element
     */
    void setSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum.Enum subacctsec);
    
    /**
     * Sets (as xml) the "SUBACCTSEC" element
     */
    void xsetSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum subacctsec);
    
    /**
     * Gets the "UNITS" element
     */
    java.lang.String getUNITS();
    
    /**
     * Gets (as xml) the "UNITS" element
     */
    net.ofx.types.x2003.x04.QuantityType xgetUNITS();
    
    /**
     * Sets the "UNITS" element
     */
    void setUNITS(java.lang.String units);
    
    /**
     * Sets (as xml) the "UNITS" element
     */
    void xsetUNITS(net.ofx.types.x2003.x04.QuantityType units);
    
    /**
     * Gets the "UNITPRICE" element
     */
    java.lang.String getUNITPRICE();
    
    /**
     * Gets (as xml) the "UNITPRICE" element
     */
    net.ofx.types.x2003.x04.UnitPriceType xgetUNITPRICE();
    
    /**
     * Sets the "UNITPRICE" element
     */
    void setUNITPRICE(java.lang.String unitprice);
    
    /**
     * Sets (as xml) the "UNITPRICE" element
     */
    void xsetUNITPRICE(net.ofx.types.x2003.x04.UnitPriceType unitprice);
    
    /**
     * Gets the "COMMISSION" element
     */
    java.lang.String getCOMMISSION();
    
    /**
     * Gets (as xml) the "COMMISSION" element
     */
    net.ofx.types.x2003.x04.PositiveAmountType xgetCOMMISSION();
    
    /**
     * True if has "COMMISSION" element
     */
    boolean isSetCOMMISSION();
    
    /**
     * Sets the "COMMISSION" element
     */
    void setCOMMISSION(java.lang.String commission);
    
    /**
     * Sets (as xml) the "COMMISSION" element
     */
    void xsetCOMMISSION(net.ofx.types.x2003.x04.PositiveAmountType commission);
    
    /**
     * Unsets the "COMMISSION" element
     */
    void unsetCOMMISSION();
    
    /**
     * Gets the "TAXES" element
     */
    java.lang.String getTAXES();
    
    /**
     * Gets (as xml) the "TAXES" element
     */
    net.ofx.types.x2003.x04.PositiveAmountType xgetTAXES();
    
    /**
     * True if has "TAXES" element
     */
    boolean isSetTAXES();
    
    /**
     * Sets the "TAXES" element
     */
    void setTAXES(java.lang.String taxes);
    
    /**
     * Sets (as xml) the "TAXES" element
     */
    void xsetTAXES(net.ofx.types.x2003.x04.PositiveAmountType taxes);
    
    /**
     * Unsets the "TAXES" element
     */
    void unsetTAXES();
    
    /**
     * Gets the "FEES" element
     */
    java.lang.String getFEES();
    
    /**
     * Gets (as xml) the "FEES" element
     */
    net.ofx.types.x2003.x04.PositiveAmountType xgetFEES();
    
    /**
     * True if has "FEES" element
     */
    boolean isSetFEES();
    
    /**
     * Sets the "FEES" element
     */
    void setFEES(java.lang.String fees);
    
    /**
     * Sets (as xml) the "FEES" element
     */
    void xsetFEES(net.ofx.types.x2003.x04.PositiveAmountType fees);
    
    /**
     * Unsets the "FEES" element
     */
    void unsetFEES();
    
    /**
     * Gets the "LOAD" element
     */
    java.lang.String getLOAD();
    
    /**
     * Gets (as xml) the "LOAD" element
     */
    net.ofx.types.x2003.x04.PositiveAmountType xgetLOAD();
    
    /**
     * True if has "LOAD" element
     */
    boolean isSetLOAD();
    
    /**
     * Sets the "LOAD" element
     */
    void setLOAD(java.lang.String load);
    
    /**
     * Sets (as xml) the "LOAD" element
     */
    void xsetLOAD(net.ofx.types.x2003.x04.PositiveAmountType load);
    
    /**
     * Unsets the "LOAD" element
     */
    void unsetLOAD();
    
    /**
     * Gets the "TAXEXEMPT" element
     */
    net.ofx.types.x2003.x04.BooleanType.Enum getTAXEXEMPT();
    
    /**
     * Gets (as xml) the "TAXEXEMPT" element
     */
    net.ofx.types.x2003.x04.BooleanType xgetTAXEXEMPT();
    
    /**
     * True if has "TAXEXEMPT" element
     */
    boolean isSetTAXEXEMPT();
    
    /**
     * Sets the "TAXEXEMPT" element
     */
    void setTAXEXEMPT(net.ofx.types.x2003.x04.BooleanType.Enum taxexempt);
    
    /**
     * Sets (as xml) the "TAXEXEMPT" element
     */
    void xsetTAXEXEMPT(net.ofx.types.x2003.x04.BooleanType taxexempt);
    
    /**
     * Unsets the "TAXEXEMPT" element
     */
    void unsetTAXEXEMPT();
    
    /**
     * Gets the "CURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency getCURRENCY();
    
    /**
     * True if has "CURRENCY" element
     */
    boolean isSetCURRENCY();
    
    /**
     * Sets the "CURRENCY" element
     */
    void setCURRENCY(net.ofx.types.x2003.x04.Currency currency);
    
    /**
     * Appends and returns a new empty "CURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency addNewCURRENCY();
    
    /**
     * Unsets the "CURRENCY" element
     */
    void unsetCURRENCY();
    
    /**
     * Gets the "ORIGCURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency getORIGCURRENCY();
    
    /**
     * True if has "ORIGCURRENCY" element
     */
    boolean isSetORIGCURRENCY();
    
    /**
     * Sets the "ORIGCURRENCY" element
     */
    void setORIGCURRENCY(net.ofx.types.x2003.x04.Currency origcurrency);
    
    /**
     * Appends and returns a new empty "ORIGCURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency addNewORIGCURRENCY();
    
    /**
     * Unsets the "ORIGCURRENCY" element
     */
    void unsetORIGCURRENCY();
    
    /**
     * Gets the "INV401KSOURCE" element
     */
    net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum getINV401KSOURCE();
    
    /**
     * Gets (as xml) the "INV401KSOURCE" element
     */
    net.ofx.types.x2003.x04.Investment401KSourceEnum xgetINV401KSOURCE();
    
    /**
     * True if has "INV401KSOURCE" element
     */
    boolean isSetINV401KSOURCE();
    
    /**
     * Sets the "INV401KSOURCE" element
     */
    void setINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum inv401KSOURCE);
    
    /**
     * Sets (as xml) the "INV401KSOURCE" element
     */
    void xsetINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum inv401KSOURCE);
    
    /**
     * Unsets the "INV401KSOURCE" element
     */
    void unsetINV401KSOURCE();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static net.ofx.types.x2003.x04.Reinvest newInstance() {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static net.ofx.types.x2003.x04.Reinvest newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, null ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, options ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, null ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, options ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        public static net.ofx.types.x2003.x04.Reinvest parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.Reinvest) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
